package com.idol.io;

import java.io.InputStream;

/**
 * @author Supreme_Sir
 * @version 1.0
 * @className Resource
 * @description
 * @date 2020/9/24 22:39
 **/
public class Resource {
    /**
     * xml 资源加载器
     *
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resource.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
